home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.0 / PInterfaces / ASDebugging.p < prev    next >
Encoding:
Text File  |  1995-04-18  |  6.2 KB  |  179 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ASDebugging.p
  3.  
  4.      Contains:    AppleScript Debugging Interfaces.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT ASDebugging;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __ASDEBUGGING__}
  30. {$SETC __ASDEBUGGING__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ASDebuggingIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __APPLEEVENTS__}
  38. {$I AppleEvents.p}
  39. {$ENDC}
  40. {    Errors.p                                                    }
  41. {        ConditionalMacros.p                                        }
  42. {    Types.p                                                        }
  43. {    Memory.p                                                    }
  44. {        MixedMode.p                                                }
  45. {    OSUtils.p                                                    }
  46. {    Events.p                                                    }
  47. {        Quickdraw.p                                                }
  48. {            QuickdrawText.p                                        }
  49. {    EPPC.p                                                        }
  50. {        AppleTalk.p                                                }
  51. {        Files.p                                                    }
  52. {        PPCToolbox.p                                            }
  53. {        Processes.p                                                }
  54. {    Notification.p                                                }
  55.  
  56. {$IFC UNDEFINED __APPLESCRIPT__}
  57. {$I AppleScript.p}
  58. {$ENDC}
  59. {    OSA.p                                                        }
  60. {        AEObjects.p                                                }
  61. {        Components.p                                            }
  62. {    TextEdit.p                                                    }
  63.  
  64. {$PUSH}
  65. {$ALIGN MAC68K}
  66. {$LibExport+}
  67.  
  68. CONST
  69. {     This mode flag can be passed to OSASetProperty or OSASetHandler
  70.         and will prevent properties or handlers from being defined in a context
  71.         that doesn't already have bindings for them. An error is returned if
  72.         a current binding doesn't already exist. }
  73.     kOSAModeDontDefine            = $0001;
  74.  
  75. {*************************************************************************
  76.     Component Selectors
  77. *************************************************************************}
  78.     kASSelectSetPropertyObsolete = $1101;
  79.     kASSelectGetPropertyObsolete = $1101;
  80.     kASSelectSetHandlerObsolete    = $1103;
  81.     kASSelectGetHandlerObsolete    = $1104;
  82.     kASSelectGetAppTerminologyObsolete = $1105;
  83.     kASSelectSetProperty        = $1106;
  84.     kASSelectGetProperty        = $1107;
  85.     kASSelectSetHandler            = $1108;
  86.     kASSelectGetHandler            = $1109;
  87.     kASSelectGetAppTerminology    = $110A;
  88.     kASSelectGetSysTerminology    = $110B;
  89.     kASSelectGetPropertyNames    = $110C;
  90.     kASSelectGetHandlerNames    = $110D;
  91.  
  92. {*************************************************************************
  93.     Context Accessors
  94. *************************************************************************}
  95.  
  96. FUNCTION OSASetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  97.     {$IFC NOT GENERATINGCFM}
  98.     INLINE $2F3C, 16, $1106, $7000, $A82A;
  99.     {$ENDC}
  100. FUNCTION OSAGetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  101.     {$IFC NOT GENERATINGCFM}
  102.     INLINE $2F3C, 16, $1107, $7000, $A82A;
  103.     {$ENDC}
  104. FUNCTION OSAGetPropertyNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingPropertyNames: AEDescList): OSAError;
  105.     {$IFC NOT GENERATINGCFM}
  106.     INLINE $2F3C, 12, $110C, $7000, $A82A;
  107.     {$ENDC}
  108. FUNCTION OSASetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  109.     {$IFC NOT GENERATINGCFM}
  110.     INLINE $2F3C, 16, $1108, $7000, $A82A;
  111.     {$ENDC}
  112. FUNCTION OSAGetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  113.     {$IFC NOT GENERATINGCFM}
  114.     INLINE $2F3C, 16, $1109, $7000, $A82A;
  115.     {$ENDC}
  116. FUNCTION OSAGetHandlerNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingHandlerNames: AEDescList): OSAError;
  117.     {$IFC NOT GENERATINGCFM}
  118.     INLINE $2F3C, 12, $110D, $7000, $A82A;
  119.     {$ENDC}
  120. FUNCTION OSAGetAppTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; VAR fileSpec: FSSpec; terminologyID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  121.     {$IFC NOT GENERATINGCFM}
  122.     INLINE $2F3C, 18, $110A, $7000, $A82A;
  123.     {$ENDC}
  124. { Errors:
  125.        errOSASystemError        operation failed
  126.     }
  127. FUNCTION OSAGetSysTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; terminologyID: INTEGER; VAR terminologyList: AEDesc): OSAError;
  128.     {$IFC NOT GENERATINGCFM}
  129.     INLINE $2F3C, 10, $110B, $7000, $A82A;
  130.     {$ENDC}
  131. { Errors:
  132.        errOSASystemError        operation failed
  133.     }
  134. { Notes on terminology ID
  135.  
  136.     A terminology ID is derived from script code and language code
  137.     as follows;
  138.  
  139.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  140. }
  141. {*************************************************************************
  142.     Obsolete versions provided for backward compatibility:
  143. }
  144. FUNCTION ASSetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  145.     {$IFC NOT GENERATINGCFM}
  146.     INLINE $2F3C, 12, $1101, $7000, $A82A;
  147.     {$ENDC}
  148. FUNCTION ASGetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  149.     {$IFC NOT GENERATINGCFM}
  150.     INLINE $2F3C, 12, $1101, $7000, $A82A;
  151.     {$ENDC}
  152. FUNCTION ASSetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  153.     {$IFC NOT GENERATINGCFM}
  154.     INLINE $2F3C, 12, $1103, $7000, $A82A;
  155.     {$ENDC}
  156. FUNCTION ASGetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  157.     {$IFC NOT GENERATINGCFM}
  158.     INLINE $2F3C, 12, $1104, $7000, $A82A;
  159.     {$ENDC}
  160. FUNCTION ASGetAppTerminology(scriptingComponent: ComponentInstance; VAR fileSpec: FSSpec; terminologID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  161.     {$IFC NOT GENERATINGCFM}
  162.     INLINE $2F3C, 14, $1105, $7000, $A82A;
  163.     {$ENDC}
  164. { Errors:
  165.         errOSASystemError        operation failed
  166.     }
  167. {************************************************************************}
  168.  
  169. {$ALIGN RESET}
  170. {$POP}
  171.  
  172. {$SETC UsingIncludes := ASDebuggingIncludes}
  173.  
  174. {$ENDC} {__ASDEBUGGING__}
  175.  
  176. {$IFC NOT UsingIncludes}
  177.  END.
  178. {$ENDC}
  179.